package cn.sh.org.domain;

import cn.sh.basic.domain.BaseDomain;
import cn.sh.basic.service.IBaseService;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Data
@ToString
public class Employee  extends BaseDomain {

    private String username;
    private String email;
    private String phone;
    private String salt;
    private String password;
    private Integer age;
    private Integer state;
    private Long department_id;
    private Long logininfo_id;
    private Long shop_id;

    private Department parent;
    /*自己的子部门*/
    @JsonInclude(JsonInclude.Include.NON_EMPTY)/*如果集合为空 就不转化成json字符串返给前端*/
    private List<Employee> children = new ArrayList<>();
}
